//
// Created by YE on 2024/2/17.
//
#include "symbols.h"

void initSymbols(Symbols *symbols) {
    initVarHashMap(&symbols->var_table);
    initIntHashMap(&symbols->int_table);
    initFloatHashMap(&symbols->float_table);
    initStringHashMap(&symbols->string_table);
    initFuncHashMap(&symbols->func_table);
    initVarHashMap(&symbols->inner_var_table);
}

void freeSymbols(Symbols *symbols) {
    freeVarHashMap(&symbols->var_table);
    freeIntHashMap(&symbols->int_table);
    freeFloatHashMap(&symbols->float_table);
    freeStringHashMap(&symbols->string_table);
    freeFuncHashMap(&symbols->func_table);
    freeVarHashMap(&symbols->inner_var_table);
}